package main.java.com.zzxy.springmvc12.controller;

@Controller
public class TestController {
    public String test(@RequestParam(required = true, defaultValue = "19", name = "id") int id) {
        System.out.println("id: " + id);
        return "forward:/stu/register.do";
    }
    public String test4() {
        return "redirect:/stu/register.do";
    }

}
